package utils

import (
	"encoding/base64"
	"io/ioutil"
)

func ImgBase63(imgPath string) string {
	//file,_:=os.OpenFile(imgPath,os.O_CREATE|os.O_RDWR|os.O_APPEND,os.ModePerm)
	//
	//defer file.Close()
	file_byte, _ := ioutil.ReadFile(imgPath)

	base64_string:=base64.StdEncoding.EncodeToString(file_byte)

	return base64_string
}